package com.authine.cloudpivot.web.api.service.impl;

import com.authine.cloudpivot.web.api.dao.MeetingActivitiesMapper;
import com.authine.cloudpivot.web.api.service.EmployeeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private MeetingActivitiesMapper meetingActivitiesMapper;

    @Override
    public String GetWorkPrefix(String companycode) {
        String workprefix= meetingActivitiesMapper.selectWorkPrefixByCompanyCode(companycode);
        return workprefix;
    }

    @Override
    public String GetMaxNo(String workprefix) {
        String userNo= meetingActivitiesMapper.selectMaxNoByWorkPrefix(workprefix);
        return userNo;
    }
}
